package com.baymax.study.base.enum_impl.impl;

import com.baymax.study.base.enum_impl.MessageTopicI;
import lombok.Getter;

@Getter
public enum MessageTopic implements MessageTopicI {
    MT_1("MT_1", "V1"),
    MT_2("MT_2", "V2"),
    MT_3("MT_3", "V3");

    private final String value;

    private final String name;

    @Override
    public String getMask() {
        return name;
    }

    @Override
    public String getValue() {
        return getMask() + "_" + value;
    }

    MessageTopic(String name, String value) {
        this.name = name;
        this.value = value;
    }

}